package com.think.teaching.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 试题
 * </p>
 *
 * @author think
 * @since 2020-08-12
 */
public class Question extends BaseModel<Question> {

    private static final long serialVersionUID=1L;

    public static final int Multiple_Choice =1;

    public static final int True_Or_False =2;

    public static final int Fill_The_Blank =3;

    public static final int Short_Answer_Questions =4;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试题类型
     */
    private Integer type;

    /**
     * 试题内容
     */
    private String content;

    /**
     * 试题解析
     */
    private String analyzing;
    
    private String answer;
    
    private Integer courseId;
    
    
    @TableField(exist = false)
    private List<String> selections;

   


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAnalyzing() {
        return analyzing;
    }

    public void setAnalyzing(String analyzing) {
        this.analyzing = analyzing;
    }

    

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Question{" +
        "id=" + id +
        ", type=" + type +
        ", content=" + content +
        ", analyzing=" + analyzing +
        ", createdBy=" + createdBy +
        ", createdTime=" + createdTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", delflag=" + delflag +
        ", state=" + state +
        "}";
    }

	public List<String> getSelections() {
		return selections;
	}

	public void setSelections(List<String> selections) {
		this.selections = selections;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Integer getCourseId() {
		return courseId;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}
}
